<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
    //  function   father(name,age){
    //         this.name = name;
    //         this.age = age;
    //  }
    //  function   son(name,age){
    //         // this.name = name;
    //         // this.age = age;
    //         father.call(this,12)
    //  }
    var arr = [1,2,3]
   var c =  arr.filter(function(value,index){
   return value>=2;
    })
    console.log(c);
    
    </script>
</body>
</html>